package AdapterPattern;


import AdapterPattern.ClassAdapter.ClassAdapter;
import AdapterPattern.ClassAdapter.Phone;

public class Test {
    public static void main(String[] args) {
        //类适配器测试
        System.out.println("适配器模式 1.类适配器测试");
        Phone phone = new Phone();
        phone.charging(new ClassAdapter());//传入适配器


    }
}
